-
Notifications
You must be signed in to change notification settings - Fork 61
add credential type selection from workflow canvas #3929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3929 +/- ##
==========================================
+ Coverage 88.64% 88.77% +0.13%
==========================================
Files 422 422
Lines 18913 19049 +136
==========================================
+ Hits 16765 16911 +146
+ Misses 2148 2138 -10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1b9868b to
423bb60
Compare
- Add 4 tests for from_collab_editor flag functionality - Test that push_event is skipped when from_collab_editor is true - Test that permission checks still work with from_collab_editor - Improves coverage from ~72% to 80% for keychain component All tests verify the new conditional logic added in PR #3929 for collaborative editor integration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
6443913 to
b3925c4
Compare
- Add 4 tests for from_collab_editor flag functionality - Test that push_event is skipped when from_collab_editor is true - Test that permission checks still work with from_collab_editor - Improves coverage from ~72% to 80% for keychain component All tests verify the new conditional logic added in PR #3929 for collaborative editor integration.
c83a9d2 to
2cedcca
Compare
This PR adds the ability to create credentials directly from the workflow canvas when configuring job credentials. Users can now select from OAuth, Raw JSON, and Keychain credential types through an advanced picker interface. Features: - Advanced credential type picker with OAuth, Raw, and Keychain options - Keychain credential creation and editing from collaborative editor - Back navigation between picker pages - Form validation and error handling - Integration with existing credential management system Testing: - Comprehensive integration tests for credential creation flows - Authorization tests for viewer permissions - Back navigation and form state preservation tests - Validation error handling tests
2cedcca to
475952f
Compare
midigofrank
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done
Resolved conflicts in: - CHANGELOG.md: Combined entries from both branches - lib/lightning_web/live/workflow_live/collaborate.ex: Merged credential type picker with webhook auth modal, updated event handler name to close_credential_modal - test/lightning_web/live/workflow_live/collaborate_test.exs: Combined credential picker tests with webhook auth modal tests
Resolved conflicts in: - CHANGELOG.md: Kept both feature entries - useWorkflow.ts: Added useWorkflowSettingsErrors hook from main
fd6623c to
1ed37e5
Compare
- Add keychain.png for keychain credential type - Add raw.png for raw JSON credential type - Update paths in credential_form_component.ex Icons are placed in /priv/static/images/ alongside other static images like user.png, google.png, etc. File names without dashes avoid gitignore patterns that exclude digested build assets.
1ed37e5 to
67dafb0
Compare
Description
This PR adds the ability to create credentials with different types directly from the workflow canvas. Users can now access an advanced credential type picker to select OAuth clients, raw JSON credentials, or keychain credentials.
Closes #3906
Closes #3947
Validation steps
📹 Quick demo video here: https://www.loom.com/share/4887974a3f4f49a988da76f52a13ce4a
Open workflow editor and click Configure Connection:
Access advanced credential type picker:
Test OAuth credential creation flow:
Test raw JSON credential creation flow:
Test keychain credential creation flow:
Additional notes for the reviewer
AI Usage
Please disclose how you've used AI in this work (it's cool, we just want to know!):
You can read more details in our Responsible AI Policy
Pre-submission checklist
:owner,:admin,:editor,:viewer)